package com.demo.page9101.controller.user;


import com.demo.common.entity.User;
import com.demo.page9101.feign.user.UserFeign;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户
 * 作者：张佑威
 * 插入数据：张佑威
 * 架构搭建：张佑威
 */
@RestController
@RequestMapping("/page")
@CrossOrigin
public class PageController {
    @Resource
    private UserFeign userFeign;

    @RequestMapping("/selectAll")
    public List<User> selectAll(){
        return userFeign.selectAll();
    }

}
